package com.cqan.log.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.ws.rs.core.HttpHeaders;

@Entity
//表名与类名不相同时重新定义表名.
@SuppressWarnings("serial")
@Table(name = "TBL_LOG_DIGITAL_ACCESS")
public class DigitalAccessLog extends BasicLog {

	private Long nid;

	@Column(name="NID")
	public Long getNid() {
		return nid;
	}

	public void setNid(Long nid) {
		this.nid = nid;
	}
	
	public DigitalAccessLog(){}
	
	public DigitalAccessLog(HttpHeaders headers,String ip){
		super(headers);
		this.setIp(ip);
	}
	public DigitalAccessLog(HttpHeaders headers,String ip,Long nid){
		super(headers);
		this.setIp(ip);
		this.setNid(nid);
	}
	public DigitalAccessLog(HttpHeaders headers){
		super(headers);
	}
	
	
}
